//启示页面
import 'package:flutter/material.dart';

//列表页面示例
class FirstPage extends StatefulWidget {
//  MyListPage({Key key}) : super(key: key);

  final String title = "起始页面";

  @override
  _FirstPageState createState() => new _FirstPageState();
}

class _FirstPageState extends State<FirstPage>
    with SingleTickerProviderStateMixin {
  Key key = GlobalKey();

  Animation<double> animationTest;
  AnimationController controllerTest;

@override
  void initState() {
    super.initState();

    controllerTest = new AnimationController(
        duration: const Duration(milliseconds: 2000),
        vsync: this);
    animationTest = new Tween(begin: 1.0, end: 0.0).animate(controllerTest);

  }
  @override
  Widget build(BuildContext context) {
//    print(G.navigatorKey.toString());
// child: FadeTransition(
//           opacity: animationTest,
//           child: Image.network(
//             'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1582026997593&di=996b86c850e9edec1c3d04ec6ff41183&imgtype=0&src=http%3A%2F%2Fb-ssl.duitang.com%2Fuploads%2Fitem%2F201601%2F30%2F20160130164342_AtuPy.thumb.700_0.jpeg',
//           ),
//         ),
    return new Scaffold(
      // body: Container(
      //   //G 是空的，会崩溃
      //   width: G.screenWidth(),
      //   height: G.screenHeight(),
      //   child: Image.network(
      //       'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1582026997593&di=996b86c850e9edec1c3d04ec6ff41183&imgtype=0&src=http%3A%2F%2Fb-ssl.duitang.com%2Fuploads%2Fitem%2F201601%2F30%2F20160130164342_AtuPy.thumb.700_0.jpeg',
      //     ),
      // ), //内部开始使用基本组件类型
    );
  }
}
